<?php

/**
 * Pwiff - PHP SWF Library
 *
 * LICENSE
 * This source file is subject to the new BSD license that is bundled
 * with this package in the file LICENSE.txt.
 *
 * @package    Pwiff
 * @copyright  Copyright (c) 2010 Steven Harris
 * @license    http://www.opensource.org/licenses/bsd-license.php New BSD License
 * @version    $Id: Environment.php 2 2010-02-07 04:10:51Z indigo.sunrise $
 */

/**
 * Environment class. Handles and transports important information when
 * encoding and eventually decoding.
 * 
 * @package Pwiff
 */
class Pwiff_Environment
{
	/**
	 * The version of the SWF file we are working with.
	 * 
	 * @var int
	 */
	protected $swfVersion = 10;
	
	/**
	 * Sets the SWF version we are working with.
	 *
	 * @param  int $version
	 * @return Pwiff_Environment
	 */
	public function setSwfVersion($version)
	{
		$this->swfVersion = $version;
		return $this;
	}
	
	/**
	 * Gets the SWF version we are working with.
	 * 
	 * @return int
	 */
	public function getSwfVersion()
	{
		return $this->swfVersion;
	}
}
